import http from '@/service/http'
import config from '../config'

const baseUrl = config.USER_ADMIN_URL

export const _postPageJobByCondition = (params) => http.$POST(`${baseUrl}/job/pageJobByCondition`, params)
export const _postAddJob = (params) => http.$POST(`${baseUrl}/job/add`, params)
export const _update = (params) => http.$POST(`${baseUrl}/job/update`, params)
export const _updateStatus = (id, status) => http.$GET(`${baseUrl}/job/updateStatus/${id}/${status}`)
export const _deleteJob = (id) => http.$DELETE(`${baseUrl}/job/remove/${id}`)
export const _getListJobByOrganizationCode = (code) => http.$GET(`${baseUrl}/job/listJobByOrganizationCode/${code}`)

